package com.zl.smartmall.library.po;

import java.util.ArrayList;
import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

public class AssortFirstLevelInfo implements Parcelable {
	private int id;
	private String name;// 商品类型名称
	private String pic;// 图片路径
	private int parentid;// 父信息id
	private int level;// 类型层级
	private int cmid;// 商城表id
	private int status;// 是否启用
	private String createdat;// 创建时间
	private int kindorder;// 排序
	private String updatedat;// 更新时间

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public int getParentid() {
		return parentid;
	}

	public void setParentid(int parentid) {
		this.parentid = parentid;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getCmid() {
		return cmid;
	}

	public void setCmid(int cmid) {
		this.cmid = cmid;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getCreatedat() {
		return createdat;
	}

	public void setCreatedat(String createdat) {
		this.createdat = createdat;
	}

	public int getKindorder() {
		return kindorder;
	}

	public void setKindorder(int kindorder) {
		this.kindorder = kindorder;
	}

	public String getUpdatedat() {
		return updatedat;
	}

	public void setUpdatedat(String updatedat) {
		this.updatedat = updatedat;
	}

	private List<AssortFirstLevelInfo> secondLists = new ArrayList<AssortFirstLevelInfo>();

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<AssortFirstLevelInfo> getSecondLists() {
		return secondLists;
	}

	public void setSecondLists(List<AssortFirstLevelInfo> secondLists) {
		this.secondLists = secondLists;
	}

	public AssortFirstLevelInfo(Parcel source) {
		id = source.readInt();
		cmid = source.readInt();
		name = source.readString();
		pic = source.readString();
		parentid = source.readInt();
		level = source.readInt();
		status = source.readInt();
		createdat = source.readString();
		updatedat = source.readString();
		kindorder = source.readInt();
	}

	public AssortFirstLevelInfo() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub

		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeInt(id);
		dest.writeInt(cmid);
		dest.writeString(name);
		dest.writeString(pic);
		dest.writeInt(parentid);
		dest.writeInt(level);
		dest.writeInt(status);
		dest.writeString(createdat);
		dest.writeString(updatedat);
		dest.writeInt(kindorder);
	}

	public static final Parcelable.Creator<AssortFirstLevelInfo> CREATOR = new Creator<AssortFirstLevelInfo>() {

		@Override
		public AssortFirstLevelInfo[] newArray(int size) {
			return new AssortFirstLevelInfo[size];
		}

		@Override
		public AssortFirstLevelInfo createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new AssortFirstLevelInfo(source);
		}
	};
}
